<template>
	<div class="loading">
		<div class="cover"></div>
		<img src="./../images/loading.gif" v-if="ishow">
	</div>
</template>

<script type="text/javascript">
	export default{
		data(){
			return{
				isRemove: false,
                ishow:false
			}
		},
		destroyed(){
			document.body.removeChild(this.$el);
			this.isRemove = true;
            this.ishow=false
		},
		methods:{
		},
	}
</script>

<style scoped lang="scss">
	.loading{
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 9801;

		.cover{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: transparent;
		}

		img{
			width: 64px;
			height: 64px;
		}
	}
</style>